-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable NFD rule for GPU resource driver Helm chart #68
Conversation
cd15249
to
e5bd563
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the initial ruleset could be simplified.
Every API exposed to users needs maintenance policy e.g. how long they're deprecated before being renamed or dropped, so exposing unneeded APIs (like labels) should be avoided.
- labels: | ||
gpu.intel.com/product: "Max_1100" | ||
labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" | ||
- labelsTemplate: "gpu.intel.com/device.count={{"{{"}} len .pci.device {{"}}"}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not notice this earlier, but there are 4 rules for different sets of GPU IDs, each producing the same gpu.intel.com/device.count=<count>
label. Which won't produce correct results on node which has GPUs from multiple rule sets.
While this is not a problem for GPU plugin because it does not support nodes with different types of Intel GPUs, DRA GPU driver is supposed to support support such use-case too.
I think it's best just to remove these rules completely for now...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I removed these rules
dd26f4a
to
abc96af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I only now noticed couple of other potential issues.
tolerations: [] | ||
nodeSelector: {} | ||
nodeSelector: | ||
intel.feature.node.kubernetes.io/gpu: "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This label will exist only with NFD. I think it's better to wrap it inside nfd.enabled
check in the DaemonSet
template, and remove or leave this empty (in case user wants for some reason to use his/her own label instead of NFD one):
intel.feature.node.kubernetes.io/gpu: "true" | |
# label used when nfd.enabled is true | |
#intel.feature.node.kubernetes.io/gpu: "true" |
efc0923
to
32991a4
Compare
32991a4
to
478b0bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Default image tag value in README.md is outdated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Versions mismatch.
No description provided.